#ifndef WIDGETVARIANTMATRIX_H
#define WIDGETVARIANTMATRIX_H

#include <DefineLibUiQt.h>
#include <QtWidgets/QWidget>
#include <WidgetVariant.h>

namespace Ui {
class WidgetVariantMatrix;
}

class LIB_UI_QT_DLL WidgetVariantMatrix : public WidgetVariant
{
    Q_OBJECT

public:
    explicit WidgetVariantMatrix(QWidget *parent = 0);
    virtual ~WidgetVariantMatrix();
    virtual void refreshByProperty( EItemMetaPropertyPtr p);
    virtual void buildConnect();
    virtual void clearConnect();

    void getTransXYZ(double& x, double& y, double& z);
    void setTransXYZ(double x, double y, double z);
    void setRotateXYZW(double rx, double ry, double rz, double w = 0);
    void setMode(const QString& mode);

public slots:
    void slotComoboxMode(const QString& text);
    void slotComoboxFrame(const QString& text);
    void slotValueChanged(double value);


private:
    Ui::WidgetVariantMatrix *ui;
};

#endif // WIDGETVARIANTMATRIX_H
